
#include "VCPlugInHeaders.h"

#include "IEvent.h"
#include "CAlert.h"
#include "Trace.h"
#include "CPathCreationTracker.h"

// Project includes
#include "Barcode4inID.h"

/**	This tracker completes all of its behaviour in a single call to BeginTracking().
	
	@ingroup barcode4in
*/
class Barcode4inTracker : public CPathCreationTracker
{
	public:
		/**The constructor */ 
		Barcode4inTracker(IPMUnknown* boss);

		/** Destructor*/
		~Barcode4inTracker() {}

		/**
			 Invoked when the tool is selected and the user clicks the mouse. 
		*/
		virtual bool16 BeginTracking(IEvent* theEvent);
};


/*
 CREATE_PMINTERFACE
 This macro creates a class factory for the given class name
 and registers the ID with the host.
*/
CREATE_PMINTERFACE(Barcode4inTracker, kBarcode4inTrackerImpl)

/*
 Constructor for Barcode4inTracker class.
*/
Barcode4inTracker::Barcode4inTracker(IPMUnknown* boss) :
	CPathCreationTracker(boss)
{
	TRACEFLOW("barcode4in","barcode4in constructor. \n");
}


/*
 Begin tracking, invoked when the tool is selected and the user clicks the mouse. 
*/
bool16 Barcode4inTracker::BeginTracking(IEvent* theEvent)
{
	ErrorCode status = kFailure;
	
	TRACEFLOW("barcode4in", "barcode4in::BeginTracking\n");
	
	do
	{
		CAlert::ErrorAlert("barcode4in");
		break;
	} while (kFalse);
	
	return kFalse;
}
